package xyz.zhzby.cyzx.com.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author zby
 * @date 2022/02/16
 */
@Data
@ApiModel("评论返回封装")
public class DiscussionResponse {

    @ApiModelProperty("评论ID")
    private Long id;

    @ApiModelProperty("评论者ID")
    private Long userId;

    @ApiModelProperty("评论者昵称")
    private String userNickName;

    @ApiModelProperty("评论者头像")
    private String userAvatar;

    @ApiModelProperty("被回复者ID")
    private Long toUserId;

    @ApiModelProperty("被回复者昵称")
    private String toUserNickName;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间")
    private Date publishDate;

    @ApiModelProperty("回复/字评论")
    private List<DiscussionResponse> reply;

}
